package com.task.common.entity.custom.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 描述
 *
 * @author Huzz
 * @create 2022-05-21 13:37
 */
@Data
public class CreateTaskModel {

    @ApiModelProperty(value = "任务名称", required = true)
    @Excel(name = "任务名称")
    private String name;

    @ApiModelProperty(value = "(0:新建,1进行中,2挂起,3取消,4结束)", allowableValues = "0,1", required = true)
    @Excel(name = "任务状态")
    private Integer status;

    @ApiModelProperty(value = "优先级(1:important, 2:secondary,3:generally)", allowableValues = "1,2,3", required = true)
    private Integer priority;

    @ApiModelProperty(value = "任务描述", required = true)
    @Excel(name = "任务描述")
    private String description;

    @ApiModelProperty(value = "所属项目", required = true)
    @Excel(name = "所属项目")
    private Integer itemId;

    @ApiModelProperty(value = "负责人", required = true)
    @Excel(name = "项目负责人")
    private String principalId;

    @ApiModelProperty(value = "开始时间", required = true)
    @Excel(name = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间", required = true)
    @Excel(name = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "被分配人id", required = true)
    private Integer userId;

}
